import request from '@/utils/request'

/**
 * 获取组织列表
 * @param params 
 * @returns 
 */
export const getOrganizationList = (params?: any) => request.get({ url: '/adminapi/organize.organization/lists', params })


/**
 * 保存组织
 * @param params 
 * @returns 
 */
export const saveOrganization = (data: any) => request.post({ url: '/adminapi/organize.organization/save', data })

/**
 * 删除组织
 * @param params 
 * @returns 
 */
export const deleteOrganization = (id: any) => request.delete({ url: '/adminapi/organize.organization/delete', params: { id } })


/**
 * 更新组织
 * @param params 
 * @returns 
 */
export const updateOrganization = (data: any) => request.put({ url: '/adminapi/organize.organization/update', data })
